package com.ztjava.member;

import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.Routes;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.ztjava.core.Constant;
import com.ztjava.core.HPlugin;
import com.ztjava.member.controller.MemberController;
import com.ztjava.member.model.MemberUser;

public class Member extends HPlugin{

	@Override
	public void configConstant(Constants me) {
		Constant.FrontPlugin = "Member";
	}

	@Override
	public void configRoute(Routes me) {
		me.add("/member",MemberController.class);
	}

	@Override
	public void configArp(ActiveRecordPlugin arp) {
		// TODO Auto-generated method stub
		addMapping(arp, MemberUser.tablename, MemberUser.class);
	}

	@Override
	public void configInterceptor(Interceptors me) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void configHandler(Handlers me) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void afterJFinalStart() {
		// TODO Auto-generated method stub
		
	}

}
